package request

type EditUserRequest struct {
	Phone    string `binding:"required,len=11" form:"phone" json:"phone" label:"手机号码"`
	Name     string `binding:"required,max=50" form:"name" json:"name" label:"姓名"`
	HeadImg  string `binding:"omitempty" form:"head_img" json:"head_img" label:"头像"`
	Password string `binding:"omitempty,min=6,max=12" form:"password" json:"password" label:"密码"`
}

type CreateUserRequest struct {
	Phone    string `binding:"required,len=11" form:"phone" json:"phone" label:"手机号码"`
	Name     string `binding:"required,max=50" form:"name" json:"name" label:"姓名"`
	Password string `binding:"required,min=6,max=12" form:"password" json:"password" label:"密码"`
}
